package model;/*
 *@创建者 lnn
 *@创建时间2016/8/3114:28
 *@描述 ${TODO}
*/

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import org.json.JSONException;
import org.json.JSONObject;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

public class ShopModel {

    /**
     * result : 1
     * data : {"goodsId":"455389","openTime":"1472376600","closeTime":"1472722200","startTime":"1472290200","endTime":"1472722200","label":"6.3","buyupnum":"9","buydownnum":"1","viewnum":"0","surplus":"0","base":"10","name":"NIKE耐克 新款男子NIKE GENICCO复刻鞋644441-003","favCount":"40","brandPic":"","brandSpec":"","shop_id":"2378","gifurl":null,"is_fbs":"1","tag_id":"0","invoice":0,"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg","album":[{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/d59bd3c34ef831840b12b6a8421bbbff_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/d59bd3c34ef831840b12b6a8421bbbff_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/84e3701abbc8bd6ee69394a2548f742d_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/84e3701abbc8bd6ee69394a2548f742d_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_640_640.jpg"}],"image":[{"title":"","img120url":"http://static.shandjj.com/images/notice_20160819.jpg","img320url":"http://static.shandjj.com/images/notice_20160819.jpg","img640url":"http://static.shandjj.com/images/notice_20160819.jpg","img1080url":"http://static.shandjj.com/images/notice_20160819.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/d59bd3c34ef831840b12b6a8421bbbff_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/d59bd3c34ef831840b12b6a8421bbbff_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/84e3701abbc8bd6ee69394a2548f742d_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/84e3701abbc8bd6ee69394a2548f742d_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/27/456541138fd8d2fcb7fa419442376922_120_122.58227848101.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/27/456541138fd8d2fcb7fa419442376922_320_326.88607594937.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/27/456541138fd8d2fcb7fa419442376922_640_653.77215189873.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/27/c14b770fbbcbbf4f3402e0f51988de48_790_807.jpg"}],"isBask":0,"customerPhone":"400 6731 520","iconLabel":"","payurl":"http://m.shandjj.com/misc/escortGirlService","payImage":"http://static.shandjj.com/wapsite/images/escort_girl_service.png?v=001","payWH":"750:236","specialNote":"特别说明：周末不发货","crazyPrice":"319.00","shopPrice":"499.00","stocknum":41,"show":{"color":{"type":1,"label":"颜色","list":["白灰黑"]},"skuSize":{"label":"尺寸","list":["42.5","43","44"],"type":1}},"spec":[{"specId":"2547166","stockScale":0,"stocknum":"14","crazyPrice":"319.00","attr":{"color":"白灰黑","skuSize":"42.5"}},{"specId":"2547167","stockScale":0,"stocknum":"13","crazyPrice":"319.00","attr":{"color":"白灰黑","skuSize":"43"}},{"specId":"2547168","stockScale":0,"stocknum":"14","crazyPrice":"319.00","attr":{"color":"白灰黑","skuSize":"44"}}],"currentTime":1472623929,"stockScale":0,"favId":0,"isfav":0,"state":0,"recommends":null,"isWap":0,"salePoint":"2件9折 3件8.5折","saleLabel":"减","discount":"5.9","flashPrice":"下单闪降20元，实付299元","cutPrice":"-20","flashLabel":"8月28日开启闪降","saleType":3}
     */

    private int result;
    /**
     * goodsId : 455389
     * openTime : 1472376600
     * closeTime : 1472722200
     * startTime : 1472290200
     * endTime : 1472722200
     * label : 6.3
     * buyupnum : 9
     * buydownnum : 1
     * viewnum : 0
     * surplus : 0
     * base : 10
     * name : NIKE耐克 新款男子NIKE GENICCO复刻鞋644441-003
     * favCount : 40
     * brandPic :
     * brandSpec :
     * shop_id : 2378
     * gifurl : null
     * is_fbs : 1
     * tag_id : 0
     * invoice : 0
     * title :
     * img120url : http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_120_120.jpg
     * img320url : http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_320_320.jpg
     * img640url : http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg
     * img1080url : http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg
     * album : [{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/d59bd3c34ef831840b12b6a8421bbbff_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/d59bd3c34ef831840b12b6a8421bbbff_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/84e3701abbc8bd6ee69394a2548f742d_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/84e3701abbc8bd6ee69394a2548f742d_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_640_640.jpg"}]
     * image : [{"title":"","img120url":"http://static.shandjj.com/images/notice_20160819.jpg","img320url":"http://static.shandjj.com/images/notice_20160819.jpg","img640url":"http://static.shandjj.com/images/notice_20160819.jpg","img1080url":"http://static.shandjj.com/images/notice_20160819.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/6fea4251a43a3e0898c84f79274f19f9_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/bcebf3bc004cc7e4006aaa01a5fe081f_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/d59bd3c34ef831840b12b6a8421bbbff_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/d59bd3c34ef831840b12b6a8421bbbff_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/84e3701abbc8bd6ee69394a2548f742d_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/84e3701abbc8bd6ee69394a2548f742d_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_120_120.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_320_320.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_640_640.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/33/80047d9302456422b53eb9f744f42d6b_640_640.jpg"},{"title":"","img120url":"http://img.shandjj.com/fdc/2016/20160729/27/456541138fd8d2fcb7fa419442376922_120_122.58227848101.jpg","img320url":"http://img.shandjj.com/fdc/2016/20160729/27/456541138fd8d2fcb7fa419442376922_320_326.88607594937.jpg","img640url":"http://img.shandjj.com/fdc/2016/20160729/27/456541138fd8d2fcb7fa419442376922_640_653.77215189873.jpg","img1080url":"http://img.shandjj.com/fdc/2016/20160729/27/c14b770fbbcbbf4f3402e0f51988de48_790_807.jpg"}]
     * isBask : 0
     * customerPhone : 400 6731 520
     * iconLabel :
     * payurl : http://m.shandjj.com/misc/escortGirlService
     * payImage : http://static.shandjj.com/wapsite/images/escort_girl_service.png?v=001
     * payWH : 750:236
     * specialNote : 特别说明：周末不发货
     * crazyPrice : 319.00
     * shopPrice : 499.00
     * stocknum : 41
     * show : {"color":{"type":1,"label":"颜色","list":["白灰黑"]},"skuSize":{"label":"尺寸","list":["42.5","43","44"],"type":1}}
     * spec : [{"specId":"2547166","stockScale":0,"stocknum":"14","crazyPrice":"319.00","attr":{"color":"白灰黑","skuSize":"42.5"}},{"specId":"2547167","stockScale":0,"stocknum":"13","crazyPrice":"319.00","attr":{"color":"白灰黑","skuSize":"43"}},{"specId":"2547168","stockScale":0,"stocknum":"14","crazyPrice":"319.00","attr":{"color":"白灰黑","skuSize":"44"}}]
     * currentTime : 1472623929
     * stockScale : 0
     * favId : 0
     * isfav : 0
     * state : 0
     * recommends : null
     * isWap : 0
     * salePoint : 2件9折 3件8.5折
     * saleLabel : 减
     * discount : 5.9
     * flashPrice : 下单闪降20元，实付299元
     * cutPrice : -20
     * flashLabel : 8月28日开启闪降
     * saleType : 3
     */

    private DataBean data;

    public static ShopModel objectFromData(String str) {

        return new Gson().fromJson(str, ShopModel.class);
    }

    public static ShopModel objectFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);

            return new Gson().fromJson(jsonObject.getString(str), ShopModel.class);
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public static List<ShopModel> arrayShopModel1FromData(String str) {

        Type listType = new TypeToken<ArrayList<ShopModel>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public static List<ShopModel> arrayShopModel1FromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);
            Type listType = new TypeToken<ArrayList<ShopModel>>() {
            }.getType();

            return new Gson().fromJson(jsonObject.getString(str), listType);

        } catch (JSONException e) {
            e.printStackTrace();
        }

        return new ArrayList();


    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private String goodsId;
        private String openTime;
        private String closeTime;
        private String startTime;
        private String endTime;
        private String label;
        private String buyupnum;
        private String buydownnum;
        private String viewnum;
        private String surplus;
        private String base;
        private String name;
        private String favCount;
        private String brandPic;
        private String brandSpec;
        private String shop_id;
        private Object gifurl;
        private String is_fbs;
        private String tag_id;
        private int invoice;
        private String title;
        private String img120url;
        private String img320url;
        private String img640url;
        private String img1080url;
        private int isBask;
        private String customerPhone;
        private String iconLabel;
        private String payurl;
        private String payImage;
        private String payWH;
        private String specialNote;
        private String crazyPrice;
        private String shopPrice;
        private int stocknum;
        /**
         * color : {"type":1,"label":"颜色","list":["白灰黑"]}
         * skuSize : {"label":"尺寸","list":["42.5","43","44"],"type":1}
         */

        private ShowBean show;
        private int currentTime;
        private int stockScale;
        private int favId;
        private int isfav;
        private int state;
        private Object recommends;
        private int isWap;
        private String salePoint;
        private String saleLabel;
        private String discount;
        private String flashPrice;
        private String cutPrice;
        private String flashLabel;
        private int saleType;
        /**
         * title :
         * img120url : http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_120_120.jpg
         * img320url : http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_320_320.jpg
         * img640url : http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg
         * img1080url : http://img.shandjj.com/fdc/2016/20160729/33/6e0645bd7a06d42465a62bb9ae8d14ea_640_640.jpg
         */

        private List<AlbumBean> album;
        /**
         * title :
         * img120url : http://static.shandjj.com/images/notice_20160819.jpg
         * img320url : http://static.shandjj.com/images/notice_20160819.jpg
         * img640url : http://static.shandjj.com/images/notice_20160819.jpg
         * img1080url : http://static.shandjj.com/images/notice_20160819.jpg
         */

        private List<ImageBean> image;
        /**
         * specId : 2547166
         * stockScale : 0
         * stocknum : 14
         * crazyPrice : 319.00
         * attr : {"color":"白灰黑","skuSize":"42.5"}
         */

        private List<SpecBean> spec;

        public static DataBean objectFromData(String str) {

            return new Gson().fromJson(str, DataBean.class);
        }

        public static DataBean objectFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);

                return new Gson().fromJson(jsonObject.getString(str), DataBean.class);
            } catch (JSONException e) {
                e.printStackTrace();
            }

            return null;
        }

        public static List<DataBean> arrayDataBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<DataBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public static List<DataBean> arrayDataBeanFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);
                Type listType = new TypeToken<ArrayList<DataBean>>() {
                }.getType();

                return new Gson().fromJson(jsonObject.getString(str), listType);

            } catch (JSONException e) {
                e.printStackTrace();
            }

            return new ArrayList();


        }

        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }

        public String getOpenTime() {
            return openTime;
        }

        public void setOpenTime(String openTime) {
            this.openTime = openTime;
        }

        public String getCloseTime() {
            return closeTime;
        }

        public void setCloseTime(String closeTime) {
            this.closeTime = closeTime;
        }

        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }

        public String getBuyupnum() {
            return buyupnum;
        }

        public void setBuyupnum(String buyupnum) {
            this.buyupnum = buyupnum;
        }

        public String getBuydownnum() {
            return buydownnum;
        }

        public void setBuydownnum(String buydownnum) {
            this.buydownnum = buydownnum;
        }

        public String getViewnum() {
            return viewnum;
        }

        public void setViewnum(String viewnum) {
            this.viewnum = viewnum;
        }

        public String getSurplus() {
            return surplus;
        }

        public void setSurplus(String surplus) {
            this.surplus = surplus;
        }

        public String getBase() {
            return base;
        }

        public void setBase(String base) {
            this.base = base;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getFavCount() {
            return favCount;
        }

        public void setFavCount(String favCount) {
            this.favCount = favCount;
        }

        public String getBrandPic() {
            return brandPic;
        }

        public void setBrandPic(String brandPic) {
            this.brandPic = brandPic;
        }

        public String getBrandSpec() {
            return brandSpec;
        }

        public void setBrandSpec(String brandSpec) {
            this.brandSpec = brandSpec;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public Object getGifurl() {
            return gifurl;
        }

        public void setGifurl(Object gifurl) {
            this.gifurl = gifurl;
        }

        public String getIs_fbs() {
            return is_fbs;
        }

        public void setIs_fbs(String is_fbs) {
            this.is_fbs = is_fbs;
        }

        public String getTag_id() {
            return tag_id;
        }

        public void setTag_id(String tag_id) {
            this.tag_id = tag_id;
        }

        public int getInvoice() {
            return invoice;
        }

        public void setInvoice(int invoice) {
            this.invoice = invoice;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getImg120url() {
            return img120url;
        }

        public void setImg120url(String img120url) {
            this.img120url = img120url;
        }

        public String getImg320url() {
            return img320url;
        }

        public void setImg320url(String img320url) {
            this.img320url = img320url;
        }

        public String getImg640url() {
            return img640url;
        }

        public void setImg640url(String img640url) {
            this.img640url = img640url;
        }

        public String getImg1080url() {
            return img1080url;
        }

        public void setImg1080url(String img1080url) {
            this.img1080url = img1080url;
        }

        public int getIsBask() {
            return isBask;
        }

        public void setIsBask(int isBask) {
            this.isBask = isBask;
        }

        public String getCustomerPhone() {
            return customerPhone;
        }

        public void setCustomerPhone(String customerPhone) {
            this.customerPhone = customerPhone;
        }

        public String getIconLabel() {
            return iconLabel;
        }

        public void setIconLabel(String iconLabel) {
            this.iconLabel = iconLabel;
        }

        public String getPayurl() {
            return payurl;
        }

        public void setPayurl(String payurl) {
            this.payurl = payurl;
        }

        public String getPayImage() {
            return payImage;
        }

        public void setPayImage(String payImage) {
            this.payImage = payImage;
        }

        public String getPayWH() {
            return payWH;
        }

        public void setPayWH(String payWH) {
            this.payWH = payWH;
        }

        public String getSpecialNote() {
            return specialNote;
        }

        public void setSpecialNote(String specialNote) {
            this.specialNote = specialNote;
        }

        public String getCrazyPrice() {
            return crazyPrice;
        }

        public void setCrazyPrice(String crazyPrice) {
            this.crazyPrice = crazyPrice;
        }

        public String getShopPrice() {
            return shopPrice;
        }

        public void setShopPrice(String shopPrice) {
            this.shopPrice = shopPrice;
        }

        public int getStocknum() {
            return stocknum;
        }

        public void setStocknum(int stocknum) {
            this.stocknum = stocknum;
        }

        public ShowBean getShow() {
            return show;
        }

        public void setShow(ShowBean show) {
            this.show = show;
        }

        public int getCurrentTime() {
            return currentTime;
        }

        public void setCurrentTime(int currentTime) {
            this.currentTime = currentTime;
        }

        public int getStockScale() {
            return stockScale;
        }

        public void setStockScale(int stockScale) {
            this.stockScale = stockScale;
        }

        public int getFavId() {
            return favId;
        }

        public void setFavId(int favId) {
            this.favId = favId;
        }

        public int getIsfav() {
            return isfav;
        }

        public void setIsfav(int isfav) {
            this.isfav = isfav;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public Object getRecommends() {
            return recommends;
        }

        public void setRecommends(Object recommends) {
            this.recommends = recommends;
        }

        public int getIsWap() {
            return isWap;
        }

        public void setIsWap(int isWap) {
            this.isWap = isWap;
        }

        public String getSalePoint() {
            return salePoint;
        }

        public void setSalePoint(String salePoint) {
            this.salePoint = salePoint;
        }

        public String getSaleLabel() {
            return saleLabel;
        }

        public void setSaleLabel(String saleLabel) {
            this.saleLabel = saleLabel;
        }

        public String getDiscount() {
            return discount;
        }

        public void setDiscount(String discount) {
            this.discount = discount;
        }

        public String getFlashPrice() {
            return flashPrice;
        }

        public void setFlashPrice(String flashPrice) {
            this.flashPrice = flashPrice;
        }

        public String getCutPrice() {
            return cutPrice;
        }

        public void setCutPrice(String cutPrice) {
            this.cutPrice = cutPrice;
        }

        public String getFlashLabel() {
            return flashLabel;
        }

        public void setFlashLabel(String flashLabel) {
            this.flashLabel = flashLabel;
        }

        public int getSaleType() {
            return saleType;
        }

        public void setSaleType(int saleType) {
            this.saleType = saleType;
        }

        public List<AlbumBean> getAlbum() {
            return album;
        }

        public void setAlbum(List<AlbumBean> album) {
            this.album = album;
        }

        public List<ImageBean> getImage() {
            return image;
        }

        public void setImage(List<ImageBean> image) {
            this.image = image;
        }

        public List<SpecBean> getSpec() {
            return spec;
        }

        public void setSpec(List<SpecBean> spec) {
            this.spec = spec;
        }

        public static class ShowBean {
            /**
             * type : 1
             * label : 颜色
             * list : ["白灰黑"]
             */

            private ColorBean color;
            /**
             * label : 尺寸
             * list : ["42.5","43","44"]
             * type : 1
             */

            private SkuSizeBean skuSize;

            public static ShowBean objectFromData(String str) {

                return new Gson().fromJson(str, ShowBean.class);
            }

            public static ShowBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), ShowBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<ShowBean> arrayShowBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<ShowBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<ShowBean> arrayShowBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<ShowBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public ColorBean getColor() {
                return color;
            }

            public void setColor(ColorBean color) {
                this.color = color;
            }

            public SkuSizeBean getSkuSize() {
                return skuSize;
            }

            public void setSkuSize(SkuSizeBean skuSize) {
                this.skuSize = skuSize;
            }

            public static class ColorBean {
                private int type;
                private String label;
                private List<String> list;

                public static ColorBean objectFromData(String str) {

                    return new Gson().fromJson(str, ColorBean.class);
                }

                public static ColorBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), ColorBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<ColorBean> arrayColorBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<ColorBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<ColorBean> arrayColorBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<ColorBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }

                public String getLabel() {
                    return label;
                }

                public void setLabel(String label) {
                    this.label = label;
                }

                public List<String> getList() {
                    return list;
                }

                public void setList(List<String> list) {
                    this.list = list;
                }
            }

            public static class SkuSizeBean {
                private String label;
                private int type;
                private List<String> list;

                public static SkuSizeBean objectFromData(String str) {

                    return new Gson().fromJson(str, SkuSizeBean.class);
                }

                public static SkuSizeBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), SkuSizeBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<SkuSizeBean> arraySkuSizeBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<SkuSizeBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<SkuSizeBean> arraySkuSizeBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<SkuSizeBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public String getLabel() {
                    return label;
                }

                public void setLabel(String label) {
                    this.label = label;
                }

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }

                public List<String> getList() {
                    return list;
                }

                public void setList(List<String> list) {
                    this.list = list;
                }
            }
        }

        public static class AlbumBean {
            private String title;
            private String img120url;
            private String img320url;
            private String img640url;
            private String img1080url;

            public static AlbumBean objectFromData(String str) {

                return new Gson().fromJson(str, AlbumBean.class);
            }

            public static AlbumBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), AlbumBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<AlbumBean> arrayAlbumBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<AlbumBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<AlbumBean> arrayAlbumBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<AlbumBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getImg120url() {
                return img120url;
            }

            public void setImg120url(String img120url) {
                this.img120url = img120url;
            }

            public String getImg320url() {
                return img320url;
            }

            public void setImg320url(String img320url) {
                this.img320url = img320url;
            }

            public String getImg640url() {
                return img640url;
            }

            public void setImg640url(String img640url) {
                this.img640url = img640url;
            }

            public String getImg1080url() {
                return img1080url;
            }

            public void setImg1080url(String img1080url) {
                this.img1080url = img1080url;
            }
        }

        public static class ImageBean {
            private String title;
            private String img120url;
            private String img320url;
            private String img640url;
            private String img1080url;

            public static ImageBean objectFromData(String str) {

                return new Gson().fromJson(str, ImageBean.class);
            }

            public static ImageBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), ImageBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<ImageBean> arrayImageBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<ImageBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<ImageBean> arrayImageBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<ImageBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getImg120url() {
                return img120url;
            }

            public void setImg120url(String img120url) {
                this.img120url = img120url;
            }

            public String getImg320url() {
                return img320url;
            }

            public void setImg320url(String img320url) {
                this.img320url = img320url;
            }

            public String getImg640url() {
                return img640url;
            }

            public void setImg640url(String img640url) {
                this.img640url = img640url;
            }

            public String getImg1080url() {
                return img1080url;
            }

            public void setImg1080url(String img1080url) {
                this.img1080url = img1080url;
            }
        }

        public static class SpecBean {
            private String specId;
            private int stockScale;
            private String stocknum;
            private String crazyPrice;
            /**
             * color : 白灰黑
             * skuSize : 42.5
             */

            private AttrBean attr;

            public static SpecBean objectFromData(String str) {

                return new Gson().fromJson(str, SpecBean.class);
            }

            public static SpecBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), SpecBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<SpecBean> arraySpecBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<SpecBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<SpecBean> arraySpecBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<SpecBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public String getSpecId() {
                return specId;
            }

            public void setSpecId(String specId) {
                this.specId = specId;
            }

            public int getStockScale() {
                return stockScale;
            }

            public void setStockScale(int stockScale) {
                this.stockScale = stockScale;
            }

            public String getStocknum() {
                return stocknum;
            }

            public void setStocknum(String stocknum) {
                this.stocknum = stocknum;
            }

            public String getCrazyPrice() {
                return crazyPrice;
            }

            public void setCrazyPrice(String crazyPrice) {
                this.crazyPrice = crazyPrice;
            }

            public AttrBean getAttr() {
                return attr;
            }

            public void setAttr(AttrBean attr) {
                this.attr = attr;
            }

            public static class AttrBean {
                private String color;
                private String skuSize;

                public static AttrBean objectFromData(String str) {

                    return new Gson().fromJson(str, AttrBean.class);
                }

                public static AttrBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), AttrBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<AttrBean> arrayAttrBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<AttrBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<AttrBean> arrayAttrBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<AttrBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public String getColor() {
                    return color;
                }

                public void setColor(String color) {
                    this.color = color;
                }

                public String getSkuSize() {
                    return skuSize;
                }

                public void setSkuSize(String skuSize) {
                    this.skuSize = skuSize;
                }
            }
        }
    }
}
